<!-- 头部开始 -->
<%- include templates/_meta_top.ejs %>
<!-- 头部结束 --> 

    <!-- Web Goobal Style-->
    <link href="/css/backend/css/goobal.css" rel="stylesheet">
    <!-- Page Index Style-->
    <link href="/css/backend/css/index.css" rel="stylesheet">
  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="navbar nav_title" style="border: 0;">
              <a href="index.html" class="site_title"><i class="fa  fa-globe"></i> <span style="margin-left:10px;">海&nbsp;量&nbsp;通</span></a>
            </div>
            <div class="clearfix"></div>
            <br/>
            <!-- 侧栏开始 -->
            <%- include templates/_sidebar.ejs %>
            <!-- 侧栏结束 -->
          </div>
        </div>
        <!-- 头部导航开始 -->
        <%- include templates/_topNav.ejs %>
        <!-- 头部导航结束 -->

        <!-- 内容开始 -->
        <div class="right_col" role="main">
            <!-- top title -->
            <div class="x_title">
              <h2>概况总览</small></h2>
              <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>

            <!-- tongji -->
            <div class="row">
              <div class="col-md-12">
                <div class="">
                  <div class="x_content">
                    <div class="row">

                      <!-- 概况统计  现金账户-->
                      <div class="animated flipInY col-lg-4 col-md-4 col-sm-12 col-xs-12 zh-item">
                       <div class="x_panel title-normal">
                          <div class="x_title">
                            <h2 class="">现金账户</h2>
                            <div class="clearfix"></div>
                          </div>
                          <div class="x_content">

                            <!-- 左侧展示信息 -->
                            <div class="left-show-news col-md-8 col-sm-8 col-lg-8 col-xs-8">
                              <div class="iocn-cotent">
                                <i class="fa  fa-usd"></i>
                              </div>

                              <div class="text-content">
                                <strong>￥-414.78</strong>
                                <small>截止2016-08-17</small>
                              </div>
                            </div>  

                            <!-- 右侧展示功能 -->
                            <div class="right-show-action">
                              <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg"><i class="fa  fa-plus"></i>充值</button>
                            </div>

                            <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
                              <div class="modal-dialog">
                                <div class="modal-content">

                                  <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                                    </button>
                                    <h4 class="modal-title" id="myModalLabel">充值信息</h4>
                                  </div>
                                  <div class="modal-body">
                                    <p>充值联系人</p>
                                    <p>111111</p>
                                  </div>
                                </div>
                              </div>
                            </div>

                          </div>
                        </div>
                      </div>

                      <!-- 概况统计  虚拟账户-->
                      <div class="animated flipInY col-lg-4 col-md-4 col-sm-12 col-xs-12 zh-item">
                       <div class="x_panel title-normal">
                          <div class="x_title">
                            <h2 class="">虚拟账户</h2>
                            <div class="clearfix"></div>
                          </div>
                          <div class="x_content">

                            <!-- 左侧展示信息 -->
                            <div class="left-show-news col-md-8 col-sm-8 col-lg-8 col-xs-8">
                              <div class="iocn-cotent xn-user">
                                <i class="fa   fa-credit-card"></i>
                              </div>

                              <div class="text-content">
                                <strong>￥-414.78</strong>
                                <small>截止2016-08-17</small>
                              </div>
                            </div>  
                          </div>
                        </div>
                      </div>

                      <!-- 概况统计  当前广告数-->
                      <div class="animated flipInY col-lg-4 col-md-4 col-sm-12 col-xs-12 zh-item">
                       <div class="x_panel title-normal">
                          <div class="x_title">
                            <h2 class="">当前广告数</h2>
                            <div class="clearfix"></div>
                          </div>
                          <div class="x_content">

                            <!-- 左侧展示信息 -->
                            <div class="left-show-news col-md-8 col-sm-8 col-lg-8 col-xs-8">
                              <div class="iocn-cotent gg-num">
                                <i class="fa   fa-navicon"></i>
                              </div>

                              <div class="text-content">
                                <strong>￥-414.78</strong>
                                <small>截止2016-08-17</small>
                              </div>
                            </div>  
                          </div>
                        </div>
                      </div>



                    <!-- chart -->
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 zt-status">
                          <div class=" x_panel">
                            <div class="row x_title">
                              <div class="col-md-6">
                                <h3>总体情况</h3>
                              </div>
                              <div class="col-md-2 navbar-right">
                                <select class="form-control">
                                  <option>今天</option>
                                  <option>昨天</option>
                                  <option>过去7天</option>
                                  <option>过去30天</option>
                                </select>
                              </div>
                            </div>
                            <div class="x_content">
                              <div class="row">
                                <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12 chart-description">
                                  <div class="tile-stats">
                                      <p><i class="fa fa-navicon"></i>曝光量： <span>1000</span></p>
                                  </div>
                                </div>
                                <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12 chart-description">
                                  <div class="tile-stats">
                                      <p><i class="fa  fa-hand-o-up"></i>点击量： <span>2500</span></p>
                                  </div>
                                </div>
                                <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12 chart-description">
                                  <div class="tile-stats">
                                      <p><i class="fa  fa-pie-chart"></i>点击率： <span>30%</span></p>
                                  </div>
                                </div>
                                <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12 chart-description">
                                  <div class="tile-stats">
                                      <p><i class="fa  fa-money"></i>花费： <span>300</span></p>
                                  </div>
                                </div>
                              </div>

                              <div class="clearfix"></div>

                                <!-- chart -->
                                <div id="statusChart" class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="width:100%; height: 399px; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; position: relative; background-color: transparent;"></div>
                                <!-- chart -->

                            </div>
                          </div>
                        </div>
                      </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- 内容结束 -->

    <!-- 底部开始 -->
    <%- include templates/_meta_bottom.ejs %>
    <!-- 底部结束 -->

    <!-- Echart -->
    <script>
      $(document).ready(function() {

        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('statusChart'),theme);

        // 指定图表的配置项和数据
        var option = {
            title: {
                text: ''
            },
            tooltip: {
                trigger: 'axis'
            },
            legend: {
                data:['曝光量（次）','点击量（次）','总花费']
            },
            grid: {
              left: '2%',
              right: 0,
            },
            xAxis: {
              axisLine: {
                show: true,
                lineStyle: {
                  color: '#E6E9ED',
                  width:2
                }
              },
              axisTick: {
                show: false
              },  

              splitLine: {
                show: false,
              },
              data: []
            },
            yAxis: {
              axisLine: {
                show: true,
                lineStyle: {
                  color: '#E6E9ED',
                  width:2
                }
              },
              type: 'value',
              data: ['0','0.2','0.4','0.6','0.8','1']
            },
            series: [
                {
                    name:'曝光量（次）',
                    smooth: true,
                    type:'line',
                    areaStyle: {
                      normal: {}
                    },
                    data:[0.1, 0.6, 0.8, 0.4, 0.4, 0.2, 1]
                },
                {
                    name:'点击量（次）',
                    smooth: true,
                    type:'line',
                    areaStyle: {
                      normal: {}
                    },
                    data:[0.1, 0.2, 0.8, 0.8, 0.4, 0.2, 1]
                },
                {
                    name:'总花费',
                    smooth: true,
                    type:'line',
                    areaStyle: {
                      normal: {}
                    },
                    data:[0.1, 0.3, 0.8, 0.6, 0.4, 0.2, 1]
                }
            ]
        };
        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);

        window.onresize = function(){
          myChart.resize();
        };

      });


      function logout(){

        bootbox.dialog({
          title : "提示信息",
          message : "<p>退出系统 ？</p>",
          buttons : {
              "success" : {
                  "label" : "<i class='icon-ok'></i> 确认",
                  "className" : "btn-sm btn-success",
              },
              "cancel" : {
                  "label" : "<i class='icon-info'></i> 取消",
                  "className" : "btn-sm btn-danger",
                  "callback" : function() { }
              }
          }
        })
      }

    </script>
    <!-- /Echart -->
  </body>
</html>